package sicnu.cs.ich.api.domain.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;
import sicnu.cs.ich.api.domain.entity.ActivityTimeline;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author 黎琦
 * @date 2021/11/25 21:59
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddCallForm implements Serializable {
//    private Integer aid;
    @NotNull(message = "name不能为空")
    private String name;
    @NotNull(message = "content不能为空")
    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "活动开始时间不能为空")
    private Date activityStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "活动结束时间不能为空")
    private Date activityEndTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "号召截止时间不能为空")
    private Date callEndTime;

    private Integer regionCode;
    private String regionDetail;
    @NotNull(message = "maxNum不能为空")
    private Integer maxNum;
    @NotNull(message = "minNum不能为空")
    private Integer minNum;
    private Integer stageNum;
    private String publicImg;
    private List<ActivityTimeline> stages;
}
